﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABELGX
{
    public class CmdHeart : CarCmd
    {
        public bool Lock {  get; set; }
        public CmdHeart(CmdSet set, int length) : base(set, length)
        {
        }

        public override byte[] GetCmd()
        {
            Cmd[8] = (byte)(Lock ? 0x01 : 0x00);
            CalXOR(Cmd);
            return Cmd;
        }
    }
}
